package com.zibo.convalesce.modules.login.service;

import com.zibo.convalesce.modules.login.pojo.AdminLoginReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zibo.convalesce.modules.login.dao.AdminLoginMapper;
import com.zibo.convalesce.modules.login.pojo.AdminLoginResp;

@Service
public class AdminLoginService {

    @Autowired
    private AdminLoginMapper adminInfoMapper;

    public AdminLoginResp queryCourtyard(AdminLoginReq adminLoginReq) {
        return adminInfoMapper.queryCourtyard(adminLoginReq);
    }

    public boolean login(AdminLoginReq loginReq) {
        return adminInfoMapper.login(loginReq);
    }
}
